/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.sys.entity.coderight;

import com.thinkgem.jeesite.modules.sys.entity.Office;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 藏品id的设置权限Entity
 * @author 杨辉
 * @version 2016-07-05
 */
public class Coderight extends DataEntity<Coderight> {
	
	private static final long serialVersionUID = 1L;
	private Office office;		// 归属部门
	private String marketid;		// 文交所
	private String code;		// 藏品
	private int codeid;		// 藏品id
	
	public Coderight() {
		super();
	}

	public Coderight(String id){
		super(id);
	}

	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}
	
	@Length(min=0, max=64, message="文交所长度必须介于 0 和 64 之间")
	public String getMarketid() {
		return marketid;
	}

	public void setMarketid(String marketid) {
		this.marketid = marketid;
	}
	
	@Length(min=0, max=64, message="藏品长度必须介于 0 和 64 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@NotNull(message="藏品id不能为空")
	public int getCodeid() {
		return codeid;
	}

	public void setCodeid(int codeid) {
		this.codeid = codeid;
	}
	
}